package com.example.viewpageapplication;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import android.os.Bundle;

import com.example.viewpageapplication.adapter.DyFragmentAdapter;
import com.example.viewpageapplication.adapter.ViewPageVadapter;
import com.example.viewpageapplication.entity.BaseT;
import com.example.viewpageapplication.fragment.DynamicFragment;

import java.util.List;

public class DynamicMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dynamic_main);
        ViewPager viewPager = findViewById(R.id.vp_dy);
        DyFragmentAdapter dyFragmentAdapter = new DyFragmentAdapter(getSupportFragmentManager(),BaseT.Images);
        viewPager.setAdapter(dyFragmentAdapter);
    }
}